<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <?php echo $this->tag->getTitle(); ?>
    <?php echo $this->tag->stylesheetLink('css/bootstrap.min.css'); ?>
    <?php echo $this->tag->javascriptInclude('js/jquery.min.js'); ?>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Your invoices">
    <meta name="author" content="Phalcon Team">
</head>
<style>
    body{width: 96%;margin:0 auto;}
    .header,.footer{ height:65px; background: url('/images/portal/default.png') repeat-x!important;}
    .header .logo{float:left; margin: 13px 0 0 30px;}
    .header .user{float: right; margin-right: 10px; line-height: 65px;}
    .article{ height: 486px; margin-top: -10px;}
    .footer{ height: 24px;}
    .clear{ clear: both;}
    .footer div{line-height: 24px;color: #fff;}

    .screen ul {
        padding: 60px 70px 0 70px;
        height:100%;
    }
    .block{
        float:left;
        display:block;
        height:150px;
        text-align:center;
        overflow:hidden;
        padding: 20px 10px 0 0;
        margin-left: 90px;
    }
</style>
<body>
<?php $this->partial("portal/header") ?>
<div class="article">
    <?php echo $this->tag->form(array('portal/save', 'role' => 'form')); ?>
    <ul class="pager">
        <li class="previous pull-left">
            <?php echo $this->tag->linkTo(array('portal', '回退')); ?>
        </li>
        <li class="pull-right">
            <?php echo $this->tag->submitButton(array('保存', 'class' => 'btn btn-success')); ?>
        </li>
    </ul>
    <?php echo $this->getContent(); ?>
    <fieldset>
        <?php foreach ($form as $element) { ?>
            <?php if (is_a($element, 'Phalcon\Forms\Element\Hidden')) { ?>
                <?php echo $element; ?>
            <?php } else { ?>
                <div class="form-group">
                    <?php echo $element->label(); ?>
                    <?php echo $element->render(array('class' => 'form-control')); ?>
                </div>
            <?php } ?>
        <?php } ?>
    </fieldset>
    </form>
</div>
<?php $this->partial("portal/footer") ?>
</body>
</html>